/*
 * @(#) User.java 2018年2月6日 下午8:26:00
 *
 * Copyright 2018 CIMIP, Inc. All rights reserved.
 * H-VISIONS PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */package cn.hc.share.entity;

 import java.io.Serializable;

 public class User implements Serializable{
 	private static final long 
 		serialVersionUID = -288301177049569372L;
 	
 	private String id;
 	private String name;
 	private String password;
 	private String phone;
 	private String nick;
 	private String email;
 	private String img;
 	
 	public User() {
 	}

 	public User(String id, String name, String password, String phone, String nick,String email) {
 		super();
 		this.id = id;
 		this.name = name;
 		this.password = password;
 		this.phone = phone;
 		this.nick = nick;
 		this.email=email;
 	}

 	
 	
 	public String getPhone()
	{
		return phone;
	}

	public void setPhone(String phone)
	{
		this.phone = phone;
	}

	public String getEmail()
	{
		return email;
	}

	public void setEmail(String email)
	{
		this.email = email;
	}

	public String getId() {
 		return id;
 	}

 	public void setId(String id) {
 		this.id = id;
 	}

 	public String getName() {
 		return name;
 	}

 	public void setName(String name) {
 		this.name = name;
 	}

 	public String getPassword() {
 		return password;
 	}

 	public void setPassword(String password) {
 		this.password = password;
 	}

 

 	public String getNick() {
 		return nick;
 	}

 	public void setNick(String nick) {
 		this.nick = nick;
 	}

 

 	@Override
	public String toString()
	{
		return "User [id=" + id + ", name=" + name + ", password=" + password + ", phone=" + phone + ", nick=" + nick
				+ ", email=" + email + "]";
	}

	@Override
 	public int hashCode() {
 		final int prime = 31;
 		int result = 1;
 		result = prime * result + ((id == null) ? 0 : id.hashCode());
 		return result;
 	}

 	@Override
 	public boolean equals(Object obj) {
 		if (this == obj)
 			return true;
 		if (obj == null)
 			return false;
 		if (getClass() != obj.getClass())
 			return false;
 		User other = (User) obj;
 		if (id == null) {
 			if (other.id != null)
 				return false;
 		} else if (!id.equals(other.id))
 			return false;
 		return true;
 	}

	public String getImg()
	{
		return img;
	}

	public void setImg(String img)
	{
		this.img = img;
	}

 	 

 	
 }

